package com.bkd.util

/**
  * 数据转换parguet中的字段类型转换工具类
  */
object NBF {

  def toInt(str: String): Int = {
    try {
      str.toInt
    } catch {
      case _: Exception => 0
    }
  }
    def toDouble(str: String): Double = {
      try {
        str.toDouble
      } catch {
        case _: Exception => 0
      }
    }

}